<!--
 * @Description: input输入
-->
<script>
  import Vue from 'vue'
  import { Component } from 'vue-property-decorator'
  import { Input } from 'element-ui'
  @Component({
    name: 'cusInput',
    extends: Input,
  })
  export default class cusInput extends Vue {
    handlePasswordVisible(event) {
      if (this.passwordVisible) {
        event.target.style.color = '#C0C4CC'
      } else {
        event.target.style.color = 'blue'
      }
      this.passwordVisible = !this.passwordVisible
      this.$nextTick(() => {
        this.focus()
      })
    }
  }
</script>
